package com.btt.pattern.proxy.custom;

import com.btt.pattern.proxy.jdk.LiSi;
import com.btt.pattern.proxy.statics.Person;

/**
 * created by Btt on 2018/07/03
 */

public class CustomProxyTest {

    public static void main(String[] args) {
        try {
            Person obj = (Person)new CustomMeiPo().getInstance(new LiSi());
            System.out.println(obj.getClass());
            obj.findLove();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
